package com.hqyj.am.controller;

import com.hqyj.am.pojo.ResultVo;
import com.hqyj.am.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: chenglongfei
 * @date: 2022/8/17
 * @Description SmsController
 */
@RestController
@RequestMapping("/sms")
public class SmsController {
    @Autowired
    SmsService smsService;
    //发送短信
    @PostMapping("/send")
    public ResultVo send(String phone){
        return smsService.smsSend(phone);
    }

}
